/**
 * 
 */

/**
 * @author Andrew Shore
 *
 */
public class CD {
	private String title;
	private String artist;
	private String recordLabel;
	
	public CD(){
		title="";
		artist="";
		recordLabel="";
	}
	
	public CD(String aTitle){
		title=aTitle;
		artist="";
		recordLabel="";
	}
	public CD(String aTitle, String aArtist){
		title=aTitle;
		artist=aArtist;
		recordLabel="";
	}
	public CD(String aTitle, String aArtist, String aRecordLabel){
		title=aTitle;
		artist=aArtist;
		recordLabel=aRecordLabel;
	}
	//accessors
	public String getTitle(){
		return title;
	}
	
	public String getArtist(){
		return artist;
	}
	public String getRecordLabel(){
		return recordLabel;
	}


	
	//Mutators
	public void setTitle(String newTitle){
		title=newTitle;
	}
	public void setArtist(String newArtist){
		title=newArtist;
	}
	public void setRecordLabel(String newRecordLabel){
		recordLabel=newRecordLabel;
	}
	public boolean equals(CD aCD){
		
		
		String otherTitle= aCD.getTitle();
		String otherArtist=aCD.getArtist();
		String otherLabel=aCD.getRecordLabel();
		
		if(otherTitle.equals(title)&&otherArtist.equals(artist)&& otherLabel.equals(recordLabel)){
			return true;
	}
		else{
			return false;
		}
}
}

